const multer = require('@koa/multer');
const { UPLOAD_PATH } = require('../config/path');

// 上传头像的中间件
const updateAvatar = multer({
    dest:UPLOAD_PATH
})
// 从哪里取值
const handleAvatar = updateAvatar.single("avatar")


module.exports = {
    handleAvatar
}